<?php
/*
    File: debug
    Contains the debug hook function
*/

/*
    Function: debug
    Output raw EZPDO queries if the ezpdo_debug config option is true
*/
function debug() {
    if(get_instance()->config->item('ezpdo_debug')) {
        echo "<pre>";
        var_dump(get_instance()->ezpdo->m->getQueries());
        echo "</pre>";
    }
    
    // print_r(debug_backtrace());
}

?>